package com.gpjcjl.entity;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 原始记录
 *
 * @author yinbiao
 */
@Entity
public class Record implements Serializable {

    private String property;//湖南液化气公司", ##气瓶产权单位
    private String ambient;//5.6", ##环境温度
    private String water;//32.4", ##水温
    private String start_num;//1", ##开始编号,最长8位数
    private String end_num;//100", ##结束编号,最长8位数
    private String check_time;//检测时间
    private String specs;//钢瓶规格

    private String report_num;//7758258" ##报告编号

    @PrimaryKey
    @NonNull
    private String id;

    public Record() {
    }

    @Ignore
    public Record(@NonNull String id) {
        this.id = id;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public String getAmbient() {
        return ambient;
    }

    public void setAmbient(String ambient) {
        this.ambient = ambient;
    }

    public String getWater() {
        return water;
    }

    public void setWater(String water) {
        this.water = water;
    }

    public String getStart_num() {
        return start_num;
    }

    public void setStart_num(String start_num) {
        this.start_num = start_num;
    }

    public String getEnd_num() {
        return end_num;
    }

    public void setEnd_num(String end_num) {
        this.end_num = end_num;
    }

    public String getReport_num() {
        return report_num;
    }

    public void setReport_num(String report_num) {
        this.report_num = report_num;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCheck_time() {
        return check_time;
    }

    public void setCheck_time(String check_time) {
        this.check_time = check_time;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public Map<String, String> toMap() {
        Map<String, String> map = new HashMap<>();
        map.put("property", property);
        map.put("ambient", ambient);
        map.put("water", water);
        map.put("start_num", start_num);
        map.put("check_time", check_time);
        map.put("end_num", end_num);
        map.put("report_num", report_num);
        map.put("uuid", id);
        return map;
    }
}
